#include "Logger.h"

int main()
{
    auto &logger = Logger::Inst();
    logger.Active(Logger::OutType::_Console_);
    logger.Logi("Hello world %s %d", "hello", 10);
    logger.Logd("Hello world %s %d", "as", 1000);
    logger.Active(Logger::OutType::_File_);

    logger.SetOutPath("logs/common.log");

    int index = 0;
    while (1)
    {
        std::this_thread::sleep_for(std::chrono::milliseconds(200));
        logger.Logd("Hello world %d", index++);
    }

    return 0;
}
